<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@include file="common/jsp/cssAndScript.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":"+ request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼎烜电力集团网络办公平台</title>
<script language="JavaScript">
//IE中png图片背景透明
	function login(){
		//验证帐户非空：
		var _node = document.getElementById("userCode");
		if(_node.value == ''){
			alert('请输入账户');
			_node.focus();
			return false ;
		}
		if( typeof( _node.release ) != 'undefined' && _node.release.constructor == Function ){
			_node.release();
		}
		//验证密码非空：
		var _node1 = document.getElementById("password");
		if(_node1.value == ''){
			alert('请输入密码');
			_node1.focus();
			return false;
		}
		if( typeof( _node1.release ) != 'undefined' && _node1.release.constructor == Function ){
			_node1.release();
		}
		loginForm.action = "login/login.action";
		loginForm.submit();
	}
	//重置
	keydown = function(){
		if(event.keyCode==13){
			login();
		}
	};
	//回车键提交 
	document.onkeypress=onEnterKeyDownSubmit;
	function onEnterKeyDownSubmit(){
		if((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)){
			login();
		}
	}
</script>
</head>
<body style="overflow-x:hidden; overflow-y:hidden;background-color:#BBD9F5">
	<form id="loginForm" name="loginForm" method="post"  action="">    
		<table width="990" style="height: 650px" align="center" cellpadding="0" cellspacing="0">
		  <tr>
		    <td width="318" valign="top">
		      <table width="100%" border="0" cellspacing="0" cellpadding="0">
		        <tr><td height="299" align="right" style="background:url(common/img/login/login1_01.gif) repeat-x;width: 318;height: 299"></td></tr>
		        <tr><td height="351" align="right" style="background:url(common/img/login/login1_04.gif) repeat-x;width: 318;height: 351"></td></tr>
		      </table>
		    </td>
		    <td width="366" valign="top">
		      <table width="100%" border="0" cellspacing="0" cellpadding="0">
		        <tr><td height="299" style="background-image:common/img/login/login_04.gif"><img src="common/img/login/login_04.gif" width="366" height="299" /></td></tr>
		        <tr><td height="96" valign="top" style="background:url(common/img/login/login_08.gif) repeat-x">
		            <table width="100%" border="0" cellspacing="0" cellpadding="0">
		              <tr>
		              	  <td width="25%" height="25">&nbsp;</td>
		                  <td width="48%" valign="top"><label><input type="text" id="userCode" name="user.name" /></label></td>
		                  <td width="27%" rowspan="2"><a href="javascript:void(0)" onclick="login();return false;"><img src="common/img/login/login_2.gif" width="57" height="55" border="0" /></a></td>
		              </tr>
		              <tr>
		                <td>&nbsp;</td>
		                <td><input type="password" id="password" name="user.password" /></td>
		              </tr>
		              <tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><s:property value='loginMessage'/></font></td></tr>
		            </table>
		          </td>
		        </tr>
		        <tr>
		          <td height="255" style="background:url(common/img/login/login1_07.gif) repeat-x">
		            <table width="100%" border="0" cellspacing="0" cellpadding="0">
		              <tr><td height="129">&nbsp;</td></tr>
		              <tr><td align="center">版权所有 &copy;2011</td></tr>
		            </table>
		          </td>
		        </tr>
		      </table>
		    </td>
		    <td width="318" valign="top">
		      <table width="100%" border="0" cellspacing="0" cellpadding="0">
		        <tr><td height="299" align="left" valign="top" style="background:url(common/img/login/login1_03.gif) repeat-x"></td></tr>
		        <tr><td height="351" align="left" style="background:url(common/img/login/login1_06.gif) repeat-x">&nbsp;</td></tr>
		      </table>
		    </td>
		  </tr>
		</table>
	</form>
</body>
</html>